package com.intramirror.wd.business.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.intramirror.wd.model.po.S2cCouponStrategyRel;
import com.intramirror.wd.model.po.S2cCouponStrategyRelExample;

@Repository
public interface S2cCouponStrategyRelMapper {
    /**
     * @mbg.generated
     */
    long countByExample(S2cCouponStrategyRelExample example);

    /**
     * @mbg.generated
     */
    int insert(S2cCouponStrategyRel record);

    /**
     * @mbg.generated
     */
    int insertSelective(S2cCouponStrategyRel record);

    /**
     * @mbg.generated
     */
    List<S2cCouponStrategyRel> selectByExample(S2cCouponStrategyRelExample example);

    /**
     * @mbg.generated
     */
    S2cCouponStrategyRel selectByPrimaryKey(Integer id);

    /**
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") S2cCouponStrategyRel record, @Param("example") S2cCouponStrategyRelExample example);

    /**
     * @mbg.generated
     */
    int updateByExample(@Param("record") S2cCouponStrategyRel record, @Param("example") S2cCouponStrategyRelExample example);

    /**
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(S2cCouponStrategyRel record);

    /**
     * @mbg.generated
     */
    int updateByPrimaryKey(S2cCouponStrategyRel record);

    int insertList(List<S2cCouponStrategyRel> strategyRelList);

    int deleteByStrategyId(@Param("strategyId")Integer strategyId);

    List<S2cCouponStrategyRel> findByStrategyId(@Param("strategyId")Long strategyId);

}